-- GENERATED SPELL FOR [Runed Giant] --


function spell0_26417(pUnit, Event) --@Rune Fist,Self--
pUnit:FullCastSpellOnTarget(49717,pUnit)
pUnit:RegisterEvent('Sorts_26417', 634, 1)
end

function spell1_26417(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(55196,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26417', 10302, 1)
end

function Sorts_26417(pUnit, Event)
local choix_sorts_26417 = math.random(0, 1)
if choix_sorts_26417 == 0 then
pUnit:RegisterEvent('spell0_26417', 1, 1)
end
if choix_sorts_26417 == 1 then
pUnit:RegisterEvent('spell1_26417', 1, 1)
end
end

function mob26417_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26417', math.random(1500, 3000), 1)
end

function mob26417_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26417_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26417_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26417, 1, 'mob26417_Action')
RegisterUnitEvent(26417, 2, 'mob26417_Leave')
RegisterUnitEvent(26417, 3, 'mob26417_Kill')
RegisterUnitEvent(26417, 4, 'mob26417_Die')
